<?php

use Biz\service\Album\AlbumCategoryRelateService;

/**
 * 发现更多清单
 */
class FindMoreAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_NOTHING;
    const PAGE_SIZE = 18;

    /**
     * @throws \Exception
     */
    public function main()
    {
        $categoryId = $this->getRequest()->getPost('category_id', 0);//分类id 0表示全部
        $page = $this->getRequest()->getPost('page', 1);
        $list = AlbumCategoryRelateService::getFindMoreList($categoryId, $page, self::PAGE_SIZE);
        $this->setSuccess($list);

    }
}